#!/usr/bin/env python
# encoding: utf-8

from common.libs.Log import logger
from common.libs.Helper import getFormatTime, getCurrentTime


from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *

# from ui.deviceItem import Ui_Form

import PyQt5_stylesheets
import qtawesome as qta

class DeviceItemWidget(QWidget):
    def __init__(self, parent = None):
        super(QWidget, self).__init__(parent)
        # self.setupUi(self)
        self.layoutInit()
        # self.uiInit()
        # self.timerInit()
        # self.signalInit()

    def layoutInit(self):
        self.gridLayout = QGridLayout()
        self.label_device_image = QLabel()
        self.label_device_image.setText('设备图片')
        self.label_device_name = QLabel()
        self.label_device_name.setText('设备图片')
        self.label_device_model = QLabel()
        self.label_device_model.setText('设备图片')
        self.label_device_status = QLabel()
        self.label_device_status.setText('设备图片')
        self.label_device_position = QLabel()
        self.label_device_position.setText('设备图片')
        self.label_device_sn = QLabel()
        self.label_device_sn.setText('设备图片')
        self.gridLayout.addWidget(self.label_device_image, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.label_device_name, 0, 1, 1, 1)
        self.gridLayout.addWidget(self.label_device_model, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.label_device_status, 1, 1, 1, 1)
        self.gridLayout.addWidget(self.label_device_position, 2, 0, 1, 1)
        self.gridLayout.addWidget(self.label_device_sn, 2, 1, 1, 1)
        self.setLayout(self.gridLayout)

    def uiInit(self):
        pass

    def timerInit(self):
        pass

    def signalInit(self):
        pass


